package com.ruoyi.system.domain;


import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import start.spring.basic.ry.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;


/**
 * 数据库配置对象 gg_pz_db
 * 
 * @author xuyy
 * @date 2023-08-08
 */
@Data
@TableName("gg_pz_db")
@ApiModel(value="gg_pz_db表映射对象", description="")
public class GgPzDb implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据库唯一标志")
    @TableField("dbid")
    private String dbid;

    @ApiModelProperty(value = "数据库连接")
    @TableField("url")
    @Excel(name = "数据库连接")
    private String url;

    @ApiModelProperty(value = "用户名")
    @TableField("username")
    @Excel(name = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    @TableField("pwd")
    private String pwd;

    @ApiModelProperty(value = "初始连接数")
    @TableField("init_size")
    @Excel(name = "初始连接数")
    private Integer initSize;

    @ApiModelProperty(value = "最大连接数")
    @TableField("max_active")
    @Excel(name = "最大连接数")
    private Integer maxActive;

    @ApiModelProperty(value = "最小连接数")
    @TableField("min_idle")
    @Excel(name = "最小连接数")
    private Integer minIdle;

    @ApiModelProperty(value = "数据库驱动")
    @TableField("driver_class_name")
    @Excel(name = "数据库驱动")
    private String driverClassName;

    @ApiModelProperty(value = "验证sql")
    @TableField("validation_query")
    private String validationQuery;

    @ApiModelProperty(value = "用途")
    @TableField("use_for")
    @Excel(name = "用途")
    private String useFor;

	
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dbid", getDbid())
            .append("url", getUrl())
            .append("username", getUsername())
            .append("pwd", getPwd())
            .append("initSize", getInitSize())
            .append("maxActive", getMaxActive())
            .append("minIdle", getMinIdle())
            .append("driverClassName", getDriverClassName())
            .append("validationQuery", getValidationQuery())
            .append("useFor", getUseFor())
            .toString();
    }
}
